package PracticeCorrect;

public class Student01 {
    private int number;
    int state;
    int score;

    public Student01(int n) {
        number = n;
        state = (int) (Math.random() * 6 + 1);
        score = (int) (Math.random() * 101);
    }

    public void show(){
        System.out.println("学号：" + number + "\t年级：" + state + "\t分数：" + score);
    }
}
